package com.foreverwin.mes.meapi.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import java.io.Serializable;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 
 * </p>
 *
 * @author Syngna
 * @since 2020-03-04
 */
@TableName("BOM_OPERATION")
public class BomOperation extends Model<BomOperation> {

    private static final long serialVersionUID = 1L;

   @TableId(value = "HANDLE", type = IdType.INPUT)
   private String handle;
   @TableField("BOM_COMPONENT_BO")
   private String bomComponentBo;
   @TableField("OPERATION_BO")
   private String operationBo;
   @TableField("QTY")
   private Double qty;


   public String getHandle() {
      return handle;
   }

   public void setHandle(String handle) {
      this.handle = handle;
   }

   public String getBomComponentBo() {
      return bomComponentBo;
   }

   public void setBomComponentBo(String bomComponentBo) {
      this.bomComponentBo = bomComponentBo;
   }

   public String getOperationBo() {
      return operationBo;
   }

   public void setOperationBo(String operationBo) {
      this.operationBo = operationBo;
   }

   public Double getQty() {
      return qty;
   }

   public void setQty(Double qty) {
      this.qty = qty;
   }

   public static final String HANDLE = "HANDLE";

   public static final String BOM_COMPONENT_BO = "BOM_COMPONENT_BO";

   public static final String OPERATION_BO = "OPERATION_BO";

   public static final String QTY = "QTY";

   @Override
   protected Serializable pkVal() {
      return this.handle;
   }

   @Override
   public String toString() {
      return "BomOperation{" +
         "handle = " + handle +
         ", bomComponentBo = " + bomComponentBo +
         ", operationBo = " + operationBo +
         ", qty = " + qty +
         "}";
   }
}